<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>人才培训</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">

	<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/my_course.css">
	
</head>
<body>
	<div class="header">
		<div class="top">
			<div class="sn-nav-title of">我的课程</div>
		</div>
	</div>
	<div class="main">
		<div class="header">
			<p><a href="my_course.html">未考课程</a></p>
			<p class="current"><a href="my_course1.html">已考课程</a></p>
		</div>
		<div class="list">
			<ul id="items">
				
			</ul>
		</div>
	</div>
</body>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/base.js"></script>

<script type="text/javascript" charset="utf-8">
	
	$(".courseBtn").click(function(){
		window.location.href="questions.html";
	})
	

	var	openid=localStorage.getItem("openid");
	if(openid=='' || openid==null){
		alert("非法访问");
		window.close();
	}

	$.ajax({
		url  : "/course/select/openid",
		type : "post",
		data : {
			remark:openid,
			state:'exam'
		},
			dataType : "json",
		async : false,
		success : function(data) {
			if(data.code==0){
				var list=data.data;
				var html="";
				for(var i=0;i<list.length;i++){
					html+="<li class='course clearfix'>"+
							  "<div class='left fl'>"+
								"<img src='img/course_logo.png' style='height: 80px;'>"+
							  "</div>"+
							  "<div class='right fr'>"+
								"<h3>"+list[i].title+"</h3>"+
								"<p>考试时间:2017-06-15 10:12:05</p>"+
								"<p>考试结果:通过(90分)</p>"+
							  "</div>"+
						  "</li>";							
				}
				$("#items").empty().append(html);
			}
		}
	});	
</script>


</html>